package function

import (
	idworker "github.com/gitstliu/go-id-worker"
)

func GenerateUUID() int64 {
	currWorker := &idworker.IdWorker{}
	currWorker.InitIdWorker(1000, 1)
	newId, err := currWorker.NextId()
	if err != nil {
		newId, _ = currWorker.NextId()
	}
	return newId
}
